#include<stdio.h>
int main(void)
{

	int x,y,z,count;
	count=0;
	for(x=0; x<100; x++)
	{
		for(y=0; y<100; y++)
		{
			for(z=0; z<100; z++)
			{
				if(5*x+3*y+z/3==100 && z%3==0 && x+y+z==100)
				{
					printf("%d",x);
					count++;
					if(count%3!=0)
					{
						printf("\40");
					}
					else
					{
						printf("\n");
					}
					printf("%d",y);
					count++;
					if(count%3!=0)
					{
						printf("\40");
					}
					else
					{
						printf("\n");
					}
					printf("%d",z);
					count++;
					if(count%3!=0)
					{
						printf("\40");
					}
					else
					{
						printf("\n");
					}
					
					
				}
			}
			
		}
	}
	return 0;
}
